<?php
	$wbDBserver = 'localhost';
	$wbDBuser = "zz52fang_f";
	$wbDBpassword = 'nimda12345qwert';
	$wbDBname = 'zz52fang';
	$wbDBport = '3306';

	$mysqli = new mysqli($wbDBserver , $wbDBuser , $wbDBpassword , $wbDBname );

	/* check connection */
	if (mysqli_connect_errno()) {
	   printf("Connect failed: %s\n", mysqli_connect_error());
	   exit();
	}
	 
	$query = "select id  , name ,  number , password from agentlist order by id asc";
	$result = $mysqli->query($query);

	/* associative array */
	while($row = $result->fetch_array(MYSQLI_ASSOC)){
		echo $row["number"]."<br>";
	//	echo $row["number"]."\t";
	//	echo $row["password"]."<br/>"; 
	}

	/* free result set */
	$result->close();

	/* close connection */
	$mysqli->close();

?>